package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Notice;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Notice record);

    Notice selectByPrimaryKey(Long id);

    List<Notice> selectAll();

    int updateByPrimaryKey(Notice record);

    List<Notice> selectForList(QueryObject qo);

    Integer selectMiddle(@Param("employeeId") Long employeeId, @Param("id") Long id);

    void saveMiddle(@Param("employeeId") Long employeeId, @Param("id") Long id);

    void deleteMiddle(Long id);
}
